#ifndef _I2C_BUS_H_
#define _I2C_BUS_H_	
#ifdef __cplusplus
extern "C" {
#endif	

#include <stdlib.h>
#include <stdint.h>


#include "driver/i2c.h"

esp_err_t i2c_write_reg_8bit(uint8_t reg_addr);
esp_err_t i2c_read_reg_8bit(uint8_t reg_addr, uint8_t* data);
esp_err_t i2c_init(i2c_config_t* i2c_config);

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif

